package org.nmgyjt.springboot.beans.admin;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

@Data
public class BasePageDTO {

    @ApiModelProperty(value = "每页显示条数",example = "10")
    @Min(value =1,message = "每页显示条数要大于0")
    private long size = 10;

    @ApiModelProperty(value = "当前页",example = "1")
    @Min(value =1,message = "当前页要大于0")
    private long current = 1;
}
